<template>
  <div>
zia
<button @click="fun()">点我传数据</button>
  </div>
</template>

<script>
import EventBus from '@/eventbus/index.js'
export default {
methods: {
    fun(){
        EventBus.$emit("zia","传递的数据")
    }
},
}
</script>

<style>

</style>